//package org.west.sky.frame.spring.ai;
//
//import jakarta.annotation.Resource;
//import org.springframework.ai.chat.prompt.Prompt;
//import org.springframework.ai.ollama.OllamaChatClient;
//import org.springframework.ai.ollama.api.OllamaApi;
//import org.springframework.ai.ollama.api.OllamaOptions;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//
///**
// * author: chz
// * date: 2024/4/19
// * description:
// */
//@RequestMapping("")
//@RestController
//public class TestController {
//
//    private final OllamaChatClient chatClient;
//
//    public TestController(OllamaChatClient chatClient){
//        this.chatClient = chatClient;
//    }
//    @GetMapping("/top/fiction")
//    public String topCodeLanguage(@RequestParam(name = "message") String message) {
////        OllamaChatClient chatClient = new OllamaChatClient(new OllamaApi("http://60.214.131.194:11434"));
////        Prompt prompt = new Prompt("2023最受欢迎小说是什么");
////        String message = "2023最受欢迎小说是什么";
////        chatClient.withDefaultOptions(new OllamaOptions().withModel("qwen:72b"));
//        return chatClient.call(message);
//    }
//
//}
